﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0032)http://localhost:8080/HouseRent/ -->
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD><TITLE>云和租房 - 用户登录</TITLE>
    <META content="text/html; charset=utf-8" http-equiv=Content-Type>
    <LINK
            rel=stylesheet type=text/css href="css/style.css">
    <META name=GENERATOR content="MSHTML 8.00.7601.17514">
    <script src="js/jquery-1.8.3.js" type="text/javascript"></script>
    <script src="js/jquery.validate.js" type="text/javascript"></script>
    <script src="js/validate-methods.js" type="text/javascript"></script>
</HEAD>
<BODY>
<DIV id=header class=wrap>
    <DIV id=logo><IMG src="images/logo.gif"></DIV>
</DIV>
<DIV id=regLogin class=wrap>
    <DIV class=dialog>
        <DIV class=box>
            <H4>用户登录</H4>
            <FORM id=userForm method=post name=user>
                <DIV class=infos>
                    <TABLE class=field>
                        <TBODY>
                        <TR>
                            <TD colSpan=2></TD>
                        </TR>
                        <TR>
                            <TD class=field>用 户 名：</TD>
                            <TD><!-- <input type="text" class="text" name="name" /> --><INPUT
                                    id=user_name class=text type=text name=username></TD>
                        </TR>
                        <TR>
                            <TD class=field>密　　码：</TD>
                            <TD><!-- <input type="password" class="text" name="password" /> --><INPUT
                                    id=user_password class=text type=password name=password></TD>
                        </TR><!--
						<tr>
							<td class="field">验 证 码：</td>
							<td><input type="text" class="text verycode" name="veryCode" /></td>
						</tr>
						--></TBODY>
                    </TABLE>
                    <DIV class=buttons>
                        <INPUT value=登陆 type=submit/>
                        <INPUT value=注册 type=submit/>
                    </DIV>
                </DIV>
            </FORM>
        </DIV>
    </DIV>
</DIV>
<DIV id=footer class=wrap>
    <DL>
        <DT>云和租房 © 2010 云和 京ICP证1000001号</DT>
        <DD>关于我们 · 联系方式 · 意见反馈 · 帮助中心</DD>
    </DL>
</DIV>
</BODY>
<script>
    $("#userForm").validate({
        rules:{
            username:{
                required:true,
                minlength:3,
                maxlength:16
            },
            password:{
                required:true,
                minlength: 6,
                maxlength: 10
            }
        },
        messages:{
            username:{
                required:"请输入用户名",
                minlength:"用户名最短3位字符",
                maxlength:"用户名最长16位字符"
            },
            password:{
                required:"请输入密码",
                minlength: "密码最短6位字符",
                maxlength: "密码最长10位字符"
            },
            onkeyup:true,
            success:"valid",
            errorElement:"span",
            focusCleanup:true,
            submitHandler:function (form) {
                $("#userForm").ajaxSubmit({
                    url:"User_login.action",
                    type:"post",
                    data:{username:$("#user_name").val(),password:$("#user_password").val()},
                    success:function(data){
                    }
                })

            }
        }
    })
</script>
</HTML>
